package cn.autumnorange.app.common.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Setter
@Getter
public abstract class BaseStatusDto extends BaseDto {
    private int status;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof BaseStatusDto)) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        BaseStatusDto that = (BaseStatusDto) o;
        return status == that.status;
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), status);
    }
}
